/* Modern Compact Theme */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --border-radius-lg: 12px;
  --border-radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 15px;
}

.container {
  max-width: 1280px;
  padding: 0 20px;
}

/* Compact Hero */
.home-hero {
  background: linear-gradient(
    135deg,
    #172554 0%,
    #1e40af 100%
  ); /* Darker blue gradient */
  padding: 40px 0 60px; /* Reduced vertical padding */
  color: white;
  margin-bottom: -30px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* Abstract Background Shapes */
.home-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.home-hero__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.home-hero__content {
  flex: 1;
  max-width: 600px;
}

.home-hero__visual {
  flex: 0 0 420px;
  max-width: 420px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.home-hero__visual-card {
  width: 100%;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-hero__visual-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-hero__visual-title small {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.home-hero__illustration {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.18);
}

@media (max-width: 980px) {
  .home-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .home-hero__visual {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
  }
}

.home-hero__badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eff6ff;
}

.home-hero__badge::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background-color: #4ade80;
  border-radius: 50%;
}

.home-hero__title {
  font-size: 2.5rem; /* Slightly larger */
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.home-hero__desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 540px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.home-hero__actions {
  display: flex;
  gap: 16px;
}

.btn {
  border-radius: 8px; /* Slightly more rounded for buttons */
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn--primary {
  background: white;
  color: #1e40af; /* Matches hero dark blue */
  border: 1px solid white;
}

.btn--primary:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

/* Main Layout: Sidebar + Content */
.main-layout {
  display: grid;
  grid-template-columns: 3fr 1fr; /* 75% - 25% Split */
  gap: 24px;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

/* Common Card Styles */
.compact-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 24px;
}

.compact-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fcfcfc;
}

.compact-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-card__more {
  font-size: 0.85rem;
  color: var(--primary-color);
  text-decoration: none;
}

.compact-card__body {
  padding: 20px;
}

/* Features Grid (Compact) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.feature-item {
  background: white;
  padding: 20px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s;
}

.feature-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.feature-icon-mini {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: bold;
}
.bg-blue {
  background: #eff6ff;
  color: #2563eb;
}
.bg-red {
  background: #fef2f2;
  color: #dc2626;
}
.bg-green {
  background: #f0fdf4;
  color: #16a34a;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Articles Grid (Dense) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns for density */
  gap: 16px;
}

.article-card-mini {
  display: flex;
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  height: 100px;
}

.article-card-mini:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.article-card-mini__img {
  width: 120px;
  background: #f1f5f9;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

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

.article-card-mini__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.75rem;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(37, 99, 235, 0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(34, 197, 94, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.article-card-mini__placeholder svg {
  width: 34px;
  height: 34px;
  opacity: 0.9;
}

.article-card-mini__content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.article-card-mini__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-mini__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sidebar Components */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-chip {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: background 0.2s;
  border: 1px solid transparent;
}

.nav-chip:hover {
  background: white;
  border-color: #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.nav-chip__icon {
  width: 24px;
  height: 24px;
  background: #eff6ff;
  color: var(--primary-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-right: 10px;
}

/* Compact News List */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.news-item a {
  text-decoration: none;
  display: block;
}

.news-item__title {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.4;
  display: block;
}

.news-item:hover .news-item__title {
  color: var(--primary-color);
}

.news-item__date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Notice Marquee - Single Row Seamless Scroll */
.notice-card .compact-card__header {
  padding: 10px 16px;
}

.notice-marquee-wrapper {
  height: 40px;
  overflow: hidden;
  position: relative;
}

.notice-marquee-track {
  display: flex;
  flex-direction: column;
  animation: notice-marquee-up var(--marquee-duration, 20s) linear infinite;
}

.notice-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes notice-marquee-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.notice-marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-marquee-item:hover {
  background: #f0f7ff;
}

.notice-marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9a145;
  flex-shrink: 0;
}

.notice-marquee-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-marquee-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Notice Modal */
.notice-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.notice-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.notice-modal {
  background: #fff;
  border-radius: 14px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s;
  overflow: hidden;
}

.notice-modal-overlay.active .notice-modal {
  transform: translateY(0) scale(1);
}

.notice-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.notice-modal__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 12px;
}

.notice-modal__close {
  width: 30px;
  height: 30px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.notice-modal__close:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.notice-modal__body {
  padding: 20px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  max-height: 260px;
  overflow-y: auto;
  word-break: break-word;
}

.notice-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

.notice-modal__link {
  font-size: 0.85rem;
  color: var(--primary-color);
  text-decoration: none;
  margin-right: auto;
}

.notice-modal__link:hover {
  text-decoration: underline;
}

.notice-modal__btn {
  padding: 7px 20px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.notice-modal__btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
