/* style.css */
/* Nagaland University Academic Section - Main Stylesheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f4f7fc;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.portal-card {
  max-width: 1300px;
  width: 100%;
  background: white;
  border-radius: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: all 0.2s ease;
}

/* ===== HEADER / HERO ===== */
.hero {
  background: linear-gradient(145deg, #0b2d4e 0%, #1a4b6d 100%);
  padding: 2.5rem 3rem 2rem 3rem;
  color: white;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #f6b83d, #e68a2e, #f6b83d);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.uni-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.uni-logo {
  background: white;
  padding: 4px 6px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  line-height: 0;
}

.uni-logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.uni-badge h1 {
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.5px;
  color: white;
}

.uni-badge span {
  font-weight: 300;
  font-size: 0.9rem;
  opacity: 0.8;
  display: block;
  margin-top: 2px;
  color: white;
}

.hero-tagline {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  padding: 0.5rem 1.4rem;
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 400;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.hero-tagline i {
  color: #f6b83d;
}

.hero-welcome {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-welcome h2 {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: white;
}

.hero-welcome h2 span {
  color: #f6b83d;
}

.hero-welcome p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin-top: 0.3rem;
  color: white;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8rem;
}

.date-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 1.2rem;
  border-radius: 40px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: white;
}

.date-badge i {
  color: #f6b83d;
}

/* subtle decoration */
.bg-pattern {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0.04;
  font-size: 12rem;
  color: white;
  transform: rotate(12deg) translateX(20px);
  pointer-events: none;
}

/* ===== MAIN CONTENT / MODULES GRID ===== */
.modules-grid {
  padding: 2.5rem 3rem 3rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.module-item {
  background: #ffffff;
  border-radius: 1.8rem;
  padding: 1.8rem 1.5rem 1.8rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 20, 40, 0.04);
  border: 1px solid #eef3f9;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.module-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px -12px rgba(0, 35, 70, 0.15);
  border-color: #d3e2f5;
}

.module-icon {
  background: #eef6fe;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #1a4b6d;
  margin-bottom: 1.2rem;
  transition: 0.2s;
}

.module-item:hover .module-icon {
  background: #1a4b6d;
  color: white;
}

.module-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0a1e2f;
  letter-spacing: -0.3px;
  margin-bottom: 0.3rem;
}

.module-sub {
  font-size: 0.9rem;
  color: #4a627a;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex: 1;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-bottom: 1.4rem;
}

.module-tags span {
  background: #f0f5fd;
  padding: 0.2rem 1rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #1f4b6e;
  text-transform: uppercase;
}

.module-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: white;
  border: 1.5px solid #dae4f0;
  padding: 0.6rem 1.2rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0a2a44;
  transition: all 0.15s ease;
  text-decoration: none;
  margin-top: 0.3rem;
  width: fit-content;
  cursor: pointer;
}

.module-btn i {
  font-size: 0.8rem;
  transition: transform 0.15s;
}

.module-btn:hover {
  background: #1a4b6d;
  border-color: #1a4b6d;
  color: white;
  box-shadow: 0 6px 12px rgba(26, 75, 109, 0.2);
}

.module-btn:hover i {
  transform: translateX(4px);
  color: white;
}

/* special accent for "apply" modules */
.module-item.apply .module-icon {
  background: #fff0e0;
  color: #b45f2b;
}

.module-item.apply:hover .module-icon {
  background: #b45f2b;
  color: white;
}

.module-item.apply .module-btn {
  border-color: #f0d5b8;
  color: #7a4422;
}

.module-item.apply .module-btn:hover {
  background: #b45f2b;
  border-color: #b45f2b;
  color: white;
}

/* statistics module */
.module-item.stats .module-icon {
  background: #e4f0e8;
  color: #1f6b4a;
}

.module-item.stats:hover .module-icon {
  background: #1f6b4a;
  color: white;
}

.module-item.stats .module-btn {
  border-color: #bcd9cb;
  color: #1d543a;
}

.module-item.stats .module-btn:hover {
  background: #1f6b4a;
  border-color: #1f6b4a;
  color: white;
}

/* organizing module */
.module-item.organize .module-icon {
  background: #e3e9fb;
  color: #2d4d7a;
}

.module-item.organize:hover .module-icon {
  background: #2d4d7a;
  color: white;
}

.module-item.organize .module-btn {
  border-color: #cad4ec;
  color: #1d3a60;
}

.module-item.organize .module-btn:hover {
  background: #2d4d7a;
  border-color: #2d4d7a;
  color: white;
}

/* ===== FOOTER ===== */
.portal-footer {
  background: #f9fcff;
  padding: 1.2rem 3rem 1.5rem 3rem;
  border-top: 1px solid #e6edf6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: #3f5a75;
  text-align: center;
  gap: 0.5rem 1.5rem;
}

.portal-footer i {
  color: #b45f2b;
  margin: 0 4px;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
}

.footer-links a {
  color: #3f5a75;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
  cursor: pointer;
}

.footer-links a:hover {
  color: #0b2d4e;
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  .hero {
    padding: 1.8rem;
  }
  .hero-welcome h2 {
    font-size: 1.8rem;
  }
  .modules-grid {
    padding: 1.8rem;
    gap: 1.4rem;
  }
  .portal-footer {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem 1.8rem;
  }
  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-tagline {
    align-self: flex-start;
  }
}

@media (max-width: 460px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
  .module-item {
    padding: 1.5rem;
  }
}

/* Add to style.css - Grid layout control */

/* ===== MAIN CONTENT / MODULES GRID ===== */
.modules-grid {
  padding: 2.5rem 3rem 3rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on large screens */
  gap: 2rem;
}

/* Medium screens: 2 columns */
@media (max-width: 992px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
}

/* Small screens: 1 column */
@media (max-width: 576px) {
  .modules-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* Keep existing module styles */
.module-item {
  background: #ffffff;
  border-radius: 1.8rem;
  padding: 1.8rem 1.5rem 1.8rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 20, 40, 0.04);
  border: 1px solid #eef3f9;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.module-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px -12px rgba(0, 35, 70, 0.15);
  border-color: #d3e2f5;
}

/* ... rest of your existing styles ... */