/* Global Theme Variables */
:root {
  --sidebar-bg: rgb(255, 255, 255);
  --bg-color: #ffffff;
  --text-color: rgb(13,13,13);
  --secondary-text: #6b7280;
  --cta-bg: #1e40af;
  --cta-hover: #1e3a8a;
  --card-bg: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-color: rgb(0, 0, 0);
  --text-color: #f9fafb;
  --secondary-text: #d1d5db;
  --cta-bg: #3b82f6;
  --cta-hover: #2563eb;
  --card-bg: #374151;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode {
  --main-bg: rgb(0,0,0);
  --sidebar-bg: rgb(0, 0, 0);
  --accent-blue: rgb(70, 118, 220);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.main-container {
  margin-left: 220px; /* Default offset for sidebar */
  transition: margin-left 0.3s ease;
}

.hero-section {
  padding: 4rem 0;
}

.hero-section h1 {
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--text-color);
}

.hero-section p {
  font-size: 1.25rem;
  color: var(--secondary-text);
}

.hero-visual {
  max-width: 900px;
  margin: 0 auto;
}

.hero-image {
  width: 80%;
  max-width: 800px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.03);
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--cta-bg);
  color: var(--bg-color);
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: var(--cta-hover);
  transform: translateY(-2px);
}

.vision-section {
  padding: 2rem 0;
}

.vision-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.vision-section p {
  font-size: 1.125rem;
  color: var(--secondary-text);
}

.vision-image {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.vision-image:hover {
  transform: scale(1.03);
}

.news-section {
  padding: 2rem 0;
}

.news-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.news-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #e5e7eb;
}

.news-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.news-card p {
  font-size: 1rem;
  color: var(--secondary-text);
}

.news-link {
  color: var(--cta-bg);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-link:hover {
  color: var(--cta-hover);
  text-decoration: underline;
}

/* Animation */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in-active {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  .vision-section {
    padding: 1rem 0;
  }
  .vision-section h2 {
    font-size: 2rem;
  }
  .news-section h2 {
    font-size: 2rem;
  }
  .news-card h3 {
    font-size: 1.25rem;
  }
}

.news-section {
  background: var(--main-bg);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.header {
  left: 0;
  right: 0;
  transition: left 0.3s ease-in-out;
}

body.sidebar-open .header {
  left: 220px;
}

.spacer-top {
  flex-grow: 0.8;
}

.spacer-bottom {
  flex-grow: 1.2;
}

#menuItems {
  width: 100%; /* Ensure it matches sidebar width */
}