/* ============================================================
   IIT ARYAVARTA — Material & Bootstrap Premium Design
   ============================================================ */

/* ── Typography & Colors ── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Outlined');

:root {
  --primary: #002147; /* Oxford/Yale style Navy */
  --secondary: #FFC72C; /* Gold/Yellow */
  --accent: #005A9C; /* Brighter Blue */
  --light-bg: #F5F5F6; /* Material grey-50 */
  --dark-text: #202124;
  --font-sans: 'Roboto', sans-serif;
  --font-serif: 'Merriweather', serif;
  
  /* Material Elevations */
  --elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --elevation-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  --elevation-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  --elevation-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

body {
  font-family: var(--font-sans);
  color: var(--dark-text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Material Components ── */
.btn-material {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 4px;
  padding: 10px 24px;
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  box-shadow: var(--elevation-1);
}

.btn-material:hover {
  box-shadow: var(--elevation-2);
  transform: translateY(-1px);
}

.btn-primary-custom {
  background-color: var(--secondary);
  color: var(--primary);
  border: none;
}
.btn-primary-custom:hover {
  background-color: #FFD54F;
  color: var(--primary);
}

.btn-outline-custom {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
}
.btn-outline-custom:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.material-card {
  background: #fff;
  border-radius: 8px;
  border: none;
  box-shadow: var(--elevation-1);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  overflow: hidden;
}

.material-card:hover {
  box-shadow: var(--elevation-3);
}

/* ── Topbar ── */
.topbar {
  background-color: #111;
  color: #ddd;
  font-size: 0.75rem;
  padding: 4px 0;
}
.topbar a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.2s;
  margin-left: 15px;
}
.topbar a:hover {
  color: var(--secondary);
}

/* ── Navbar ── */
.navbar-custom {
  background-color: var(--primary);
  box-shadow: var(--elevation-2);
  padding: 8px 0;
}
.navbar-custom .navbar-brand {
  display: flex;
  align-items: center;
}
.navbar-custom .logo-circle {
  width: 40px;
  height: 40px;
  background-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--primary);
  font-size: 1rem;
  margin-right: 12px;
  font-family: var(--font-serif);
}
.navbar-custom .brand-text {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.navbar-custom .brand-subtext {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
}
.navbar-custom .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 8px 12px !important;
  transition: color 0.3s;
}
.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
  color: var(--secondary) !important;
}

/* ── Mobile Navbar adjustments ── */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--primary);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: var(--elevation-3);
  }
  .navbar-custom .nav-link {
    padding: 12px 15px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* ── Hero Carousel ── */
.hero-carousel {
  height: 90vh;
  min-height: 600px;
  background-color: #000;
}
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}
.hero-carousel img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0.6;
}
.carousel-caption-custom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  z-index: 10;
}
.carousel-caption-custom h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  margin-bottom: 20px;
}
.carousel-caption-custom p {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #f5f5f5;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  margin-bottom: 40px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 70vh;
    min-height: 400px;
  }
}

/* ── Stats Section ── */
.stats-section {
  background-color: var(--primary);
  color: #fff;
  padding: 40px 0;
  position: relative;
  z-index: 20;
  margin-top: -50px;
  box-shadow: var(--elevation-3);
  border-radius: 8px;
}
.stat-box {
  text-align: center;
  padding: 20px;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-serif);
  margin-bottom: 5px;
}
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.stat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

@media (max-width: 768px) {
  .stats-section {
    margin-top: -20px;
    padding: 20px 0;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .stat-box {
    padding: 15px 5px;
  }
  .stat-box.border-end {
    border-right: none !important;
  }
  .stat-box.border-end-md {
    border-right: none !important;
  }
  /* Re-add specific borders for mobile 2x2 grid */
  .col-6:nth-child(odd) .stat-box {
    border-right: 1px solid rgba(255,255,255,0.25);
  }
  .col-6:nth-child(1) .stat-box, .col-6:nth-child(2) .stat-box {
    border-bottom: 1px solid rgba(255,255,255,0.25);
  }
}

/* ── Section Styles ── */
.section-padding {
  padding: 80px 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
}
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* ── Footer ── */
.footer {
  background-color: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 20px;
}
.footer h5 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 25px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer ul {
  list-style: none;
  padding: 0;
}
.footer ul li {
  margin-bottom: 12px;
}
.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--secondary);
}
.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 40px 0 20px;
}

@media (max-width: 768px) {
  .footer {
    padding: 50px 0 20px;
    text-align: center;
  }
  .footer .d-flex.align-items-center {
    justify-content: center;
  }
  .footer .d-flex.gap-3 {
    justify-content: center;
    margin-bottom: 30px;
  }
}

/* ── Page Headers ── */
.page-header {
  height: 40vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 33, 71, 0.7); /* Navy overlay */
}
.page-header-content {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }
}

/* Miscellaneous */
.bg-light-grey {
  background-color: var(--light-bg);
}
.text-primary-custom {
  color: var(--primary) !important;
}
.text-secondary-custom {
  color: var(--secondary) !important;
}
