/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #004999;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header */
.site-header {
  background-color: #1a1a1a;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo a {
  color: white;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.logo .tagline {
  font-size: 0.9rem;
  color: #0099ff;
}

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

.main-nav a {
  color: white;
  font-weight: 500;
  padding: 0.5rem;
}

.main-nav a:hover {
  color: #0099ff;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  padding-right: 370px; /* Make room for Discord sidebar when at top */
  transition: padding-right 0.4s ease;
}

body.discord-expanded .hero-content {
  padding-right: 820px; /* More room when Discord is expanded */
}

body.discord-hidden .hero-content {
  padding-right: 20px; /* Full width when Discord is hidden */
}

.hero-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slide {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.5s ease-in-out;
}

.hero-slide.active {
  display: flex;
}

.hero-slide-viewall.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-slide-viewall {
  min-height: 500px;
  background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
}

.hero-slide-viewall .hero-viewall-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-viewall-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.hero-viewall-content .hero-excerpt {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-slider-btn {
  position: absolute;
  top: 100px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.hero-slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.hero-slider-prev {
  left: 10px;
}

.hero-slider-next {
  right: 10px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 0;
}

.hero-slider-dot.active,
.hero-slider-dot:hover {
  background-color: white;
}

.hero-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-text {
  padding: 1rem;
}

.hero-label {
  display: inline-block;
  background-color: #0099ff;
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-excerpt {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-meta {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.hero-meta span {
  margin-right: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: #0099ff;
  color: white;
}

.btn-primary:hover {
  background-color: #0077cc;
  color: white;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
  color: white;
}

/* Content Sections */
.content-sections {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.content-section {
  margin-bottom: 4rem;
}

.content-section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.content-section-half {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #0066cc;
}

.section-title {
  font-size: 1.8rem;
  margin: 0;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-icon {
  font-size: 1.5rem;
}

.section-link {
  color: #0066cc;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.section-link:hover {
  color: #004999;
}

/* News Layout */
.news-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

/* Featured Article (Left) */
.news-featured {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.news-featured-image {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
}

.news-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.news-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 107, 0, 0.95);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-featured-content {
  padding: 2rem;
}

.news-featured-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  line-height: 1.3;
}

.news-featured-content h3 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-featured-content h3 a:hover {
  color: #0066cc;
}

.news-excerpt {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.news-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  align-items: center;
}

.news-meta .author {
  font-weight: 600;
}

/* Compact News List (Right) */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-compact {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-compact:hover {
  transform: translateX(4px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.news-compact-highlight {
  border-left: 4px solid #ff6b00;
}

.news-compact-image {
  width: 140px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #e9ecef;
  position: relative;
}

.news-compact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.news-compact-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.news-compact-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c33 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.news-compact-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

.news-compact-content h4 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-compact-content h4 a:hover {
  color: #0066cc;
}

.news-compact-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #999;
}

.news-compact-meta .author {
  font-weight: 600;
  color: #666;
}

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

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

.article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card-large {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.article-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #e9ecef;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.article-content h3 a {
  color: #1a1a1a;
}

.article-content h3 a:hover {
  color: #0066cc;
}

.article-excerpt {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.article-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

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

.read-more {
  color: #0066cc;
  font-weight: 600;
  font-size: 0.9rem;
}

.read-more:hover {
  color: #004999;
}

/* Single Article */
.single-article {
  padding: 3rem 0;
}

.article-header {
  text-align: center;
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.article-featured-image {
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-featured-image img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-body {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-footer {
  max-width: 800px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

/* Page Content */
.page-content {
  padding: 3rem 0;
}

.page-content h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 2rem;
}

.page-content h2 {
  font-size: 1.8rem;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.page-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.about-content,
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form {
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066cc;
}

/* Error Page */
.error-page {
  padding: 5rem 0;
  text-align: center;
}

.error-content h1 {
  font-size: 6rem;
  color: #0066cc;
  margin-bottom: 1rem;
}

.error-content h2 {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.error-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Footer */
.site-footer {
  background-color: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info h3 {
  margin-bottom: 0.5rem;
}

.footer-info p {
  color: #999;
  font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #999;
}

.footer-links a:hover {
  color: #0099ff;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: #999;
}

.social-links a:hover {
  color: #0099ff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #999;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    padding-right: 20px !important; /* Remove Discord space on tablets */
  }

  .discord-sticky {
    width: 300px;
  }

  .discord-sticky.collapsed {
    transform: translateX(300px);
  }

  .discord-sticky.expanded {
    width: 600px; /* Smaller expanded width on tablets */
  }

  .discord-sticky.expanded.collapsed {
    transform: translateX(600px);
  }

  .hero-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .main-nav {
    margin-top: 1rem;
  }

  .main-nav ul {
    gap: 1rem;
  }

  .hero-content {
    padding-right: 20px !important;
  }

  /* Discord on mobile - single column only */
  .discord-sticky {
    width: 100%;
    max-width: 320px;
  }

  .discord-sticky.collapsed {
    transform: translateX(100%);
  }

  .discord-sticky.expanded {
    width: 100%;
    max-width: 320px; /* No expand on mobile */
  }

  .discord-sticky.expanded.collapsed {
    transform: translateX(100%);
  }

  /* Hide expand button on mobile */
  .discord-expand-btn {
    display: none;
  }

  .discord-toggle {
    left: -45px;
    width: 45px;
    height: 100px;
  }

  .discord-icon-btn {
    width: 24px;
    height: 24px;
  }

  .articles-grid,
  .articles-grid-featured {
    grid-template-columns: 1fr;
  }

  .content-section-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ==================================================
   STICKY DISCORD SIDEBAR - Complete Redesign
   ================================================== */

/* Main Container */
.discord-sticky {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 400px;
  z-index: 999;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.discord-sticky.collapsed {
  transform: translateX(400px);
}

.discord-sticky.expanded {
  width: 900px;
}

.discord-sticky.expanded.collapsed {
  transform: translateX(900px);
}

/* Control Buttons (Always Visible) */
.discord-controls {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.discord-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  border: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: white;
}

.discord-btn:hover {
  background: linear-gradient(135deg, #4752c4 0%, #5b6fb8 100%);
  left: -5px;
  position: relative;
}

.discord-btn svg {
  transition: transform 0.3s ease;
}

.discord-collapse-btn svg {
  transform: rotate(0deg);
}

.discord-expand-btn svg {
  transform: rotate(0deg);
}

/* Hide expand button when already expanded */
.discord-sticky.expanded .discord-expand-btn {
  display: none;
}

/* Shrink button - only visible when expanded */
.discord-shrink-btn {
  display: none;
}

.discord-sticky.expanded .discord-shrink-btn {
  display: flex;
}

/* Open Button (when collapsed) */
.discord-open-btn {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 100px;
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  border: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1;
}

.discord-sticky.collapsed .discord-open-btn {
  display: flex;
}

.discord-sticky.collapsed .discord-controls {
  display: none;
}

.discord-open-btn:hover {
  background: linear-gradient(135deg, #4752c4 0%, #5b6fb8 100%);
  left: -55px;
}

.discord-icon-btn {
  width: 36px;
  height: 36px;
  fill: white;
}

/* Main Panel */
.discord-panel {
  width: 100%;
  height: 100%;
  background-color: #36393f;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3);
  display: flex;
  overflow: hidden;
}

/* ==================================================
   NAVIGATION SIDEBAR (Left Side - Only Visible When Expanded)
   ================================================== */

.discord-nav {
  width: 0;
  background-color: #2f3136;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  opacity: 0;
}

.discord-sticky.expanded .discord-nav {
  width: 260px;
  opacity: 1;
}

.discord-nav-header {
  padding: 1rem;
  border-bottom: 1px solid #202225;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #202225;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 2px 0 rgba(0, 0, 0, 0.06);
}

.discord-nav-header .discord-icon {
  width: 24px;
  height: 24px;
  fill: #5865f2;
  flex-shrink: 0;
}

.discord-nav-header h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation Sections */
.discord-nav-section {
  padding: 0.75rem 0.5rem;
}

.discord-nav-title {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8e9297;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Channel Items */
.discord-channel-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin: 0.125rem 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #96989d;
  font-size: 0.95rem;
}

.discord-channel-item:hover {
  background-color: #393c43;
  color: #dcddde;
}

.discord-channel-item.active {
  background-color: #393c43;
  color: #fff;
}

.channel-icon {
  font-size: 1.2rem;
  color: #8e9297;
  flex-shrink: 0;
}

.discord-channel-item.active .channel-icon {
  color: #fff;
}

.channel-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-badge {
  background-color: #f23f42;
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

/* Server Items */
.discord-server-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin: 0.25rem 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  background-color: rgba(0, 0, 0, 0.1);
}

.discord-server-item:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.discord-server-item.members-only {
  opacity: 0.7;
}

.server-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #7289da);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.server-info {
  flex: 1;
  min-width: 0;
}

.server-name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.125rem;
}

.server-meta {
  color: #8e9297;
  font-size: 0.75rem;
}

.lock-icon {
  font-size: 1rem;
  opacity: 0.6;
}

/* Navigation Footer */
.discord-nav-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid #202225;
}

.discord-nav-footer .discord-join-main-btn {
  width: 100%;
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  text-align: center;
}

.discord-nav-footer .discord-join-main-btn:hover {
  background: linear-gradient(135deg, #4752c4 0%, #5b6fb8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(88, 101, 242, 0.3);
  color: white;
}

/* ==================================================
   MAIN CHAT AREA (Right Side - Expanded View)
   ================================================== */

.discord-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #36393f;
  min-width: 0;
}

/* Chat Header */
.discord-header {
  background-color: #36393f;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #202225;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 2px 0 rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.discord-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.channel-icon-header {
  font-size: 1.5rem;
  color: #8e9297;
  flex-shrink: 0;
}

.discord-header h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.channel-topic {
  color: #96989d;
  font-size: 0.85rem;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid #4f545c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.discord-online-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b9bbbe;
  font-size: 0.85rem;
  font-weight: 600;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #43b581;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Messages Area */
.discord-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background-color: #36393f;
}

.discord-messages::-webkit-scrollbar {
  width: 14px;
}

.discord-messages::-webkit-scrollbar-track {
  background: #2e3136;
}

.discord-messages::-webkit-scrollbar-thumb {
  background: #202225;
  border-radius: 8px;
  border: 3px solid #2e3136;
}

.discord-messages::-webkit-scrollbar-thumb:hover {
  background: #1a1d21;
}

/* Message Item */
.discord-message {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  transition: background-color 0.1s ease;
  border-radius: 4px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  margin: 0 -0.5rem 0 -1rem;
}

.discord-message:hover {
  background-color: #32353b;
}

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #7289da);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #36393f;
}

.discord-message-content {
  flex: 1;
  min-width: 0;
}

.discord-message-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.discord-username {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: text-decoration 0.1s ease;
}

.discord-username:hover {
  text-decoration: underline;
}

.discord-role {
  background-color: rgba(88, 101, 242, 0.15);
  color: #5865f2;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.discord-role.moderator {
  background-color: rgba(87, 242, 135, 0.15);
  color: #57f287;
}

.discord-role.vip {
  background-color: rgba(254, 231, 92, 0.15);
  color: #fee75c;
}

.discord-timestamp {
  color: #72767d;
  font-size: 0.75rem;
  font-weight: 500;
}

.discord-message-text {
  color: #dcddde;
  font-size: 1rem;
  line-height: 1.5;
  word-wrap: break-word;
}

/* Input Area */
.discord-input-area {
  padding: 1.5rem 1rem 1rem 1rem;
  background-color: #36393f;
  flex-shrink: 0;
}

.discord-input-wrapper {
  background-color: #40444b;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: text;
  transition: background-color 0.15s ease;
}

.discord-input-wrapper:hover {
  background-color: #383c43;
}

.discord-input-placeholder {
  color: #72767d;
  font-size: 1rem;
}

/* Join Footer (visible when NOT expanded) */
.discord-join-footer {
  padding: 0 1rem 1.5rem 1rem;
  background-color: #36393f;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.discord-sticky.expanded .discord-join-footer {
  display: none;
}

.discord-join-footer .discord-join-main-btn {
  width: 100%;
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  text-align: center;
}

.discord-join-footer .discord-join-main-btn:hover {
  background: linear-gradient(135deg, #4752c4 0%, #5b6fb8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(88, 101, 242, 0.3);
}

/* ==================================================
   RESPONSIVE DESIGN
   ================================================== */

@media (max-width: 1024px) {
  .discord-sticky {
    width: 350px;
  }

  .discord-sticky.collapsed {
    transform: translateX(350px);
  }

  .discord-sticky.expanded {
    width: 700px;
  }

  .discord-sticky.expanded.collapsed {
    transform: translateX(700px);
  }

  .discord-nav {
    width: 220px;
  }

  .discord-sticky.expanded .discord-nav {
    width: 240px;
  }

  .channel-topic {
    display: none;
  }
}

@media (max-width: 768px) {
  .discord-sticky {
    width: 100%;
    max-width: 320px;
  }

  .discord-sticky.collapsed {
    transform: translateX(100%);
  }

  .discord-sticky.expanded {
    width: 100%;
    max-width: 320px;
  }

  .discord-sticky.expanded.collapsed {
    transform: translateX(100%);
  }

  .discord-expand-btn {
    display: none;
  }

  .discord-controls {
    left: -45px;
  }

  .discord-open-btn {
    left: -45px;
    width: 45px;
    height: 90px;
  }

  .discord-btn {
    width: 45px;
    height: 45px;
  }

  .discord-nav {
    width: 100%;
  }

  .discord-online-count {
    font-size: 0.75rem;
  }

  .discord-message {
    padding: 0.5rem 0.25rem;
  }

  .discord-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .discord-message-text {
    font-size: 0.95rem;
  }
}

/* In Development Overlay */
.section-in-development {
  position: relative;
}

.development-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  border-radius: 8px;
}

.section-in-development:hover .development-overlay {
  opacity: 1;
  visibility: visible;
}

.development-message {
  text-align: center;
  color: white;
  padding: 2rem;
}

.development-message h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: white;
}

.development-message p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.95;
}

/* Learning Resources Section */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-card {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.resource-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
  border-radius: 8px;
}

.resource-content {
  flex: 1;
}

.resource-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.resource-content h4 a {
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.resource-content h4 a:hover {
  color: #0066cc;
}

.resource-content p {
  margin: 0 0 0.75rem 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.resource-type {
  display: inline-block;
  background-color: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Events Section */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  gap: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.event-featured {
  background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
  color: white;
}

.event-featured .event-date {
  background-color: white;
  color: #0066cc;
}

.event-featured h4 a {
  color: white;
}

.event-featured .event-location {
  color: rgba(255, 255, 255, 0.9);
}

.event-featured .event-description {
  color: rgba(255, 255, 255, 0.95);
}

.event-date {
  background-color: #0066cc;
  color: white;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  min-width: 70px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-month {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
}

.event-day {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.25rem;
}

.event-content {
  flex: 1;
}

.event-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.event-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.event-content h4 a {
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.event-content h4 a:hover {
  color: #0066cc;
}

.event-location {
  margin: 0 0 0.5rem 0;
  color: #666;
  font-size: 0.9rem;
}

.event-description {
  margin: 0;
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive Styles for News Layout */
@media (max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .news-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .news-featured-image {
    height: 250px;
  }

  .news-featured-content {
    padding: 1.5rem;
  }

  .news-featured-content h3 {
    font-size: 1.4rem;
  }

  .news-excerpt {
    font-size: 0.95rem;
  }

  .news-sidebar {
    grid-template-columns: 1fr;
  }

  .news-compact {
    flex-direction: column;
  }

  .news-compact-image {
    width: 100%;
    height: 180px;
  }
}

/* Single Article Page */
.single-article {
  background-color: #f8f9fa;
  padding: 3rem 0;
  min-height: 60vh;
}

.single-article .container {
  max-width: 900px;
}

.article-header {
  background: white;
  padding: 2.5rem;
  border-radius: 12px 12px 0 0;
  border-bottom: 4px solid #0066cc;
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  color: #1a1a1a;
}

.article-featured-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: #e9ecef;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
}

.article-not-found {
  background: white;
  padding: 4rem 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-not-found h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.article-not-found p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Responsive Article Styles */
@media (max-width: 768px) {
  .article-header {
    padding: 1.5rem;
  }

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

  .article-featured-image {
    height: 250px;
  }

  .article-body {
    padding: 2rem 1.5rem;
  }

  .article-body p {
    font-size: 1rem;
  }
}
