/* ========================================================
   IPS Public Landing Page Stylesheet
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Curated HSL Color System */
  --primary-color: hsl(243, 75%, 59%); /* Indigo */
  --primary-dark: hsl(243, 75%, 49%);
  --accent-color: hsl(268, 75%, 50%); /* Violet */
  --dark-slate: hsl(222, 47%, 11%);
  --text-muted: hsl(215.4, 16.3%, 46.9%);
  --border-color: hsl(214.3, 31.8%, 91.4%);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: hsl(210, 40%, 98%);
  color: var(--dark-slate);
}

/* 1. Glassmorphic Public Navbar */
.public-navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  padding: 16px 0;
  transition: all 0.3s ease;
}

.public-navbar .navbar-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.public-navbar .navbar-brand span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark-slate);
  margin-left: 12px;
  letter-spacing: -0.5px;
}

/* 2. Premium Navigation Buttons */
.btn-login-trigger {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white !important;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  border: none;
  font-size: 0.92rem;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-admission-nav {
  background: linear-gradient(135deg, hsl(150, 84%, 37%) 0%, hsl(162, 76%, 42%) 100%);
  color: white !important;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
}

.btn-admission-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-admission-hero {
  background: linear-gradient(135deg, hsl(150, 84%, 37%) 0%, hsl(162, 76%, 42%) 100%);
  color: white !important;
  border-radius: 50px;
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  border: none;
}

.btn-admission-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}

/* 3. Modern Hero Section */
.hero-section {
  padding: 160px 0 90px;
  background: linear-gradient(135deg, hsl(225, 100%, 95%) 0%, hsl(270, 100%, 96%) 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.12) 0%, transparent 45%), 
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.12) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 4.2rem;
  font-weight: 900;
  color: var(--dark-slate);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.65;
  color: hsl(215.4, 16.3%, 36.9%);
  margin-bottom: 40px;
  max-width: 580px;
}

/* 4. Beautiful Notice Board Card */
.notice-board-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-top: 4px solid hsl(350, 89%, 60%); /* Rose-Red top accent */
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.notice-board-header {
  background: linear-gradient(135deg, hsl(350, 89%, 60%) 0%, hsl(340, 80%, 45%) 100%);
  color: white;
  padding: 18px 24px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-board-body {
  padding: 20px;
}

.notice-item {
  border-left: 4px solid hsl(350, 89%, 60%);
  background-color: hsl(350, 89%, 97%);
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: var(--border-radius-sm);
  transition: all 0.25s ease;
}

.notice-item:hover {
  background-color: hsl(350, 89%, 95%);
  transform: translateX(4px);
}

.notice-category-badge {
  background-color: hsl(350, 89%, 60%);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.notice-title {
  color: hsl(350, 89%, 30%);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 6px;
}

.notice-date {
  font-size: 0.75rem;
  color: hsl(350, 89%, 50%);
  font-weight: 600;
}

.notice-content {
  font-size: 0.88rem;
  color: hsl(222, 47%, 15%);
  margin-bottom: 0;
  line-height: 1.5;
}

/* 5. Modern Statistics Grid */
.stats-card {
  background: white;
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-bottom: 4px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.stats-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.stats-card.c-primary { border-bottom-color: var(--primary-color); }
.stats-card.c-success { border-bottom-color: hsl(150, 84%, 37%); }
.stats-card.c-warning { border-bottom-color: hsl(38, 92%, 50%); }

.stats-icon {
  font-size: 3.2rem;
  margin-bottom: 18px;
  display: inline-block;
  transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
  transform: scale(1.1);
}

.stats-card.c-primary .stats-icon { color: var(--primary-color); }
.stats-card.c-success .stats-icon { color: hsl(150, 84%, 37%); }
.stats-card.c-warning .stats-icon { color: hsl(38, 92%, 50%); }

.stats-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.stats-label {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* 6. Section Header Utility */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 7. Faculty Members Layout */
.teacher-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
  padding: 36px 24px;
  height: 100%;
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.07);
}

.teacher-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--body-bg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.teacher-initials {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 auto 20px;
  border: 4px solid var(--body-bg);
  box-shadow: 0 4px 10px rgba(79,70,229,0.15);
  font-family: 'Outfit', sans-serif;
}

.teacher-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 6px;
}

.teacher-qual {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

/* 8. Top Student Achievers Cards */
.student-card {
  background: linear-gradient(135deg, hsl(222, 47%, 11%) 0%, hsl(222, 47%, 5%) 100%);
  border-radius: 24px;
  color: white;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  padding: 36px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.04);
}

.student-card .medal {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.5rem;
  opacity: 0.85;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.s-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
}

.s-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  border: 3px solid rgba(255, 255, 255, 0.15);
  font-family: 'Outfit', sans-serif;
}

/* 9. Offcanvas Login Panel */
.offcanvas-login {
  width: 420px;
  max-width: 100%;
  border-left: none;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.15);
}

.login-accordion .accordion-item {
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  border-radius: var(--border-radius-md) !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.login-accordion .accordion-button {
  font-weight: 700;
  padding: 20px 24px;
  background: white;
  color: var(--dark-slate);
  box-shadow: none !important;
  border: none;
}

.login-accordion .accordion-button:not(.collapsed) {
  background: hsl(210, 40%, 96.1%);
  color: var(--primary-color);
}

/* 10. Public Footer */
.public-footer {
  background: hsl(222, 47%, 6%);
  color: hsl(215.4, 16.3%, 70%);
  padding: 80px 0 40px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.public-footer .f-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
}

.public-footer h5 {
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-bottom: 24px;
}

.public-footer a {
  color: hsl(215.4, 16.3%, 70%);
  text-decoration: none;
  transition: color 0.25s ease;
}

.public-footer a:hover {
  color: white;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .public-navbar .navbar-brand span {
    font-size: 1.2rem;
  }
  
  .hero-section {
    padding: 120px 0 60px;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .stats-card {
    padding: 30px 20px;
  }
  
  .section-title h2 {
    font-size: 2.1rem;
  }
}
