/* --- UPDATED MAIN LAYOUT (4 Columns) --- */
.wrapper {
  display: block; /* Removed sidebar grid */
  padding: 0 5% 60px 5%;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 Columns */
  gap: 20px;
}

/* --- PREMIUM TICKER CONTAINER --- */
.news-ticker-container {
  margin: 30px 5% 10px 5%;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 8px; /* Sharper, more professional look */
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ticker-label {
  background: var(--primary);
  color: var(--accent); /* Gold text on Blue */
  padding: 12px 25px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%); /* Adds a stylish slant */
  padding-right: 40px;
}

.ticker-label i {
  font-size: 16px;
  animation: blink 1.5s infinite;
}

.ticker-text {
  flex-grow: 1;
  padding-right: 20px;
}

.ticker-text marquee {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

/* --- CARD REFINEMENT --- */
.portal-card {
  border-bottom: 4px solid #eee; /* Bottom accent */
}

.portal-card:hover {
  border-bottom: 4px solid var(--accent);
}

/* SMART DASHBOARD EXTENSIONS */
.dashboard-wrapper { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }

/* Welcome Section */
.welcome-glass-card {
    background: linear-gradient(135deg, #0b2c4d 0%, #1e5a93 100%);
    border-radius: 20px; padding: 2.5rem; color: white;
    display: flex; align-items: center; gap: 2rem;
    box-shadow: 0 10px 30px rgba(11, 44, 77, 0.2);
}

.student-avatar {
    width: 80px; height: 80px; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800; border: 2px solid white;
}

.quick-stats { display: flex; gap: 1.5rem; margin-top: 1rem; align-items: center; }
.stat-item { font-size: 0.9rem; opacity: 0.9; }

/* Grid Layout */
.smart-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(48%, 1fr)); gap: 1.5rem;
    margin-top: 1rem;
}

.hub-card {
    background: white; padding: 1.5rem; border-radius: 15px;
    display: flex; align-items: center; gap: 1rem;
    text-decoration: none; transition: 0.3s;
    border: 1px solid #eee; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.hub-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.hub-icon { 
    width: 50px; height: 50px; border-radius: 12px; 
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

.hub-info h4 { color: #0b2c4d; margin-bottom: 2px; }
.hub-info p { font-size: 0.85rem; color: #777; }

/* Dynamic Status */
.stat-badge { padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; }
.stat-badge.verified { background: #00c897; color: white; }
.stat-badge.pending { background: #ffb100; color: #0b2c4d; }

.hub-card.finance .hub-icon { background: #eef2ff; color: #4318ff; }
.hub-card.academics .hub-icon { background: #e6fffa; color: #05cd99; }
.hub-card.internship .hub-icon { background: #fff5f5; color: #ff4d4f; }
/* --- ANIMATIONS --- */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1100px) {
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .portal-grid { grid-template-columns: 1fr; }
  .ticker-label span { display: none; } /* Show only icon on small phones */
}