/* 
   College of Agriculture - Assam Agricultural University, Jorhat
   Modern Green Gradient Design System
   Powered by Bootstrap 5 & jQuery
*/

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

:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Color Palette - Vibrant Green Gradient Theme */
  --primary-deep: #063821;
  --primary-green: #0b4f30;
  --accent-green: #157347;
  --bright-green: #198754;
  --mint-glow: #20c997;
  --light-mint: #e8f7f2;
  --light-bg: #f4fbf7;
  
  --gold-accent: #f59e0b;
  --gold-glow: #fde68a;
  
  --dark-text: #1a2a22;
  --muted-text: #4a6356;
  --light-text: #f8faf9;
  
  --card-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-dark: rgba(6, 56, 33, 0.85);
  --glass-border: rgba(32, 201, 151, 0.25);
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #063821 0%, #0b4f30 40%, #157347 75%, #198754 100%);
  --grad-hero: linear-gradient(135deg, rgba(6, 56, 33, 0.65) 0%, rgba(11, 79, 48, 0.55) 60%, rgba(21, 115, 71, 0.45) 100%);
  --grad-accent: linear-gradient(135deg, #157347 0%, #20c997 100%);
  --grad-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #f4fbf7 100%);
  --grad-dark-card: linear-gradient(135deg, #063821 0%, #0d4a2d 100%);
  
  /* Shadows & Radius */
  --shadow-sm: 0 4px 12px rgba(11, 79, 48, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 79, 48, 0.12);
  --shadow-lg: 0 16px 40px rgba(11, 79, 48, 0.18);
  --shadow-glow: 0 0 25px rgba(32, 201, 151, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
}

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

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #eaf5f0;
}
::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-deep);
}

/* ==========================================================================
   Top Notification Bar & Navigation
   ========================================================================== */

/* ==========================================================================
   Top Notification Bar & Navigation
   ========================================================================== */

.top-bar {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(32, 201, 151, 0.2);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--mint-glow);
}

/* Main Navbar */
.navbar-custom {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  padding: 6px 0;
  z-index: 1030;
}

.navbar-custom.scrolled {
  padding: 4px 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.navbar-brand-logo {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--mint-glow);
  box-shadow: 0 0 8px rgba(32, 201, 151, 0.3);
}

.brand-text-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-deep);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.brand-text-sub {
  font-size: 0.68rem;
  color: var(--accent-green);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link {
  font-weight: 600;
  color: var(--dark-text);
  margin: 0 2px;
  padding: 6px 10px !important;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  font-size: 0.88rem;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff !important;
  background: var(--grad-accent);
  box-shadow: 0 4px 12px rgba(21, 115, 71, 0.25);
}

/* Dynamic Buttons */
.btn-green-gradient {
  background: var(--grad-accent);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 10px 22px;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(21, 115, 71, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-green-gradient:hover {
  background: linear-gradient(135deg, #0b4f30 0%, #157347 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(21, 115, 71, 0.4);
}

.btn-green-gradient:disabled,
.btn-green-gradient[disabled] {
  background: var(--grad-accent) !important;
  color: #ffffff !important;
  opacity: 0.85 !important;
  cursor: not-allowed !important;
  box-shadow: 0 4px 12px rgba(21, 115, 71, 0.2) !important;
}

.btn-gold-gradient {
  background: var(--grad-gold);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 10px 22px;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3);
  transition: all 0.3s ease;
}

.btn-gold-gradient:hover {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-green {
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  font-weight: 700;
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
}

.btn-outline-green:hover {
  background: var(--accent-green);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(135deg, rgba(6, 56, 33, 0.58) 0%, rgba(11, 79, 48, 0.48) 50%, rgba(21, 115, 71, 0.38) 100%), url('../images/background.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  color: #ffffff;
  padding: 75px 0 50px 0;
}

.hero-title, .hero-subtitle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-hero);
  z-index: 1;
}

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

.badge-glow {
  background: rgba(32, 201, 151, 0.25);
  border: 1px solid var(--mint-glow);
  color: #157347 !important;
  font-weight: 700 !important;
}

/* Extra modern UI utilities */
.extra-small {
  font-size: 0.75rem;
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

.hover-bg-success-subtle:hover {
  background-color: #e8f5e9 !important;
}

.hover-bg-warning-subtle:hover {
  background-color: #fff8e1 !important;
}

.badge-glow {
  background: rgba(32, 201, 151, 0.25);
  border: 1px solid var(--mint-glow);
  color: var(--mint-glow);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-top: 10px;
  margin-bottom: 14px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.text-gradient-mint {
  background: linear-gradient(135deg, #ffffff 0%, #20c997 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin-bottom: 20px;
}

/* Stats Counter Grid */
.stat-card-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  border-color: var(--mint-glow);
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--mint-glow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Announcement Ticker */
.ticker-wrap {
  background: var(--primary-deep);
  color: #ffffff;
  padding: 12px 0;
  border-top: 2px solid var(--mint-glow);
  border-bottom: 1px solid var(--accent-green);
}

.ticker-badge {
  background: var(--gold-accent);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ticker-text {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.ticker-text a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Section Layouts & Features
   ========================================================================== */

.section-padding {
  padding: 90px 0;
}

.section-subtitle {
  color: var(--accent-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 18px;
}

.heading-line {
  width: 70px;
  height: 4px;
  background: var(--grad-accent);
  border-radius: 2px;
  margin-bottom: 25px;
}

/* Feature Cards with Hover Effects */
.card-modern {
  background: var(--card-bg);
  border: 1px solid rgba(21, 115, 71, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  overflow: hidden;
  height: 100%;
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mint-glow);
}

.card-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--light-mint);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.card-modern:hover .card-icon-box {
  background: var(--grad-accent);
  color: #ffffff;
  transform: scale(1.08);
}

/* Dean / Leadership Showcase */
.dean-card {
  background: var(--grad-dark-card);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.dean-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(32, 201, 151, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.quote-icon {
  font-size: 3rem;
  color: var(--mint-glow);
  opacity: 0.6;
}

/* Alumni Directory & Cards */
.alumni-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 115, 71, 0.15);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.alumni-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--mint-glow);
}

.alumni-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent-green);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.alumni-name {
  text-transform: capitalize !important;
}

.batch-badge {
  background: var(--light-mint);
  color: var(--primary-green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Filter Controls */
.filter-btn-group .btn {
  border-radius: var(--radius-pill);
  font-weight: 600;
  padding: 8px 20px;
  margin: 4px;
  border: 1px solid rgba(21, 115, 71, 0.2);
  background: #ffffff;
  color: var(--dark-text);
  transition: all 0.3s ease;
}

.filter-btn-group .btn.active, .filter-btn-group .btn:hover {
  background: var(--grad-accent);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

/* Interactive Calculator Box */
.calc-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--mint-glow);
  box-shadow: var(--shadow-lg);
  padding: 35px;
}

.form-control-custom, .form-select-custom {
  border-radius: var(--radius-sm);
  border: 1.5px solid #d1e7dd;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 0.25rem rgba(21, 115, 71, 0.15);
}

/* Quick Inquiry / Contact Modal Banner */
.cta-banner {
  background: var(--grad-hero);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */

footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  padding-top: 80px;
  border-top: 4px solid var(--accent-green);
}

footer a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

footer a:hover {
  color: var(--mint-glow) !important;
}

footer h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--mint-glow);
  border-radius: 2px;
}

footer ul {
  padding-left: 0;
  list-style: none;
}

footer ul li {
  margin-bottom: 12px;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

footer ul li a:hover {
  color: var(--mint-glow);
  transform: translateX(5px);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

/* Floating Action & Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--primary-deep);
  color: var(--mint-glow);
}

/* Floating Quick Alumni Button */
.floating-alumni-btn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: var(--grad-gold);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 999;
  transition: all 0.3s ease;
}

.floating-alumni-btn:hover {
  transform: scale(1.05);
  color: #ffffff;
}

/* Lightbox & Gallery */
.gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: all 0.4s ease;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* Custom Table Styles */
.table-custom {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-custom thead {
  background: var(--grad-accent);
  color: #ffffff;
}

.table-custom th, .table-custom td {
  padding: 16px;
  vertical-align: middle;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .navbar-collapse {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
  }
  .nav-link {
    color: var(--dark-text) !important;
  }
  .nav-link:hover, .nav-link.active {
    color: #ffffff !important;
  }
}
