/**
 * Public Website Stylesheet
 * Apex Degree (+3) College Management System
 */

:root {
  --primary: #1e3a8a;
  --primary-hover: #172554;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --success: #10b981;
  --dark: #0f172a;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--light-bg);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

/* Top Notification Banner */
.top-notice-bar {
  background: linear-gradient(90deg, #1e1b4b 0%, #1e3a8a 100%);
  color: #e0e7ff;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-notice-bar a {
  color: #fde047;
  text-decoration: none;
  font-weight: 600;
}

.top-notice-bar a:hover {
  text-decoration: underline;
}

/* Navbar */
.college-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar-brand .college-logo {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.college-navbar .nav-link {
  font-weight: 500;
  color: var(--text-main);
  padding: 0.6rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition);
}

.college-navbar .nav-link:hover,
.college-navbar .nav-link.active {
  color: var(--primary);
  background-color: #eff6ff;
}

.btn-portal-login {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: var(--transition);
}

.btn-portal-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #1e3a8a 0%, #0f172a 70%);
  color: #ffffff;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #38bdf8;
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Stream Cards (+3 Arts, Science, Commerce) */
.stream-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.stream-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.stream-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.stream-card:hover::after {
  opacity: 1;
}

.stream-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.stream-science .stream-icon-box {
  background: #e0f2fe;
  color: #0284c7;
}

.stream-arts .stream-icon-box {
  background: #fef3c7;
  color: #d97706;
}

.stream-commerce .stream-icon-box {
  background: #dcfce7;
  color: #16a34a;
}

/* Notice Ticker & Board */
.notice-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}

.notice-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.notice-badge-Academic { background-color: #eff6ff; color: #1d4ed8; }
.notice-badge-Exam { background-color: #fef2f2; color: #b91c1c; }
.notice-badge-Event { background-color: #f0fdf4; color: #15803d; }
.notice-badge-Admission { background-color: #faf5ff; color: #7e22ce; }
.notice-badge-General { background-color: #f1f5f9; color: #475569; }

/* Feature / Facility Cards */
.facility-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.facility-img-wrap {
  height: 200px;
  background: #1e293b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}

.facility-img-wrap i {
  font-size: 4rem;
  opacity: 0.6;
}

/* Faculty Spotlight */
.faculty-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.faculty-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.faculty-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  border: 3px solid #eff6ff;
}

/* Footer */
.college-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.college-footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.college-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.college-footer a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  margin-top: 3rem;
  font-size: 0.875rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}
