/* Color System - Matched with Student Lobby/common.css */
:root {
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-blue: #e3f2fd;
  --blue-50: #f0f7ff;
  --blue-100: #bbdefb;
  --blue-200: #90caf9;
  --blue-300: #64b5f6;
  --blue-400: #42a5f5;
  --blue-500: #2196f3;
  --blue-600: #1976d2;
  --blue-700: #1565c0;
  --black: #212121;
  --grey-50: #fafafa;
  --grey-100: #f5f5f5;
  --grey-200: #eeeeee;
  --grey-300: #e0e0e0;
  --grey-400: #bdbdbd;
  --grey-500: #9e9e9e;
  --grey-600: #757575;
  --grey-700: #616161;
  --grey-800: #424242;
  --error-red: #ff3333;
  --error-red-light: #fff5f5;
  --success-green: #4caf50;
  --success-green-light: #f0fff4;
  --warning-orange: #ff9800;
  --accent-teal: #009688;
  --accent-purple: #673ab7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--grey-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-300);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  background: none;
  -webkit-text-fill-color: initial;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-icon:hover {
  transform: scale(1.05) rotate(5deg);
}

.logo-icon img {
  width: 1.25rem;
  height: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-500);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  padding: 0;
  background: none;
  border-radius: 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-500);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover {
  color: var(--blue-500);
  background: none;
  transform: none;
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: var(--blue-500);
  background: none;
  box-shadow: none;
}

.nav a.active::after {
  width: 100%;
}

/* Main Content */
.main-content {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Cards Container (Index Page) */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.card i {
  font-size: 3rem;
  color: var(--blue-500);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover i {
  transform: scale(1.1);
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--black);
}

.card p {
  color: var(--grey-600);
  line-height: 1.6;
}

/* Policy Pages */
.policy-header {
  text-align: center;
  margin-bottom: 3rem;
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
}

.policy-header h1 {
  color: var(--black);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.policy-badge {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-600);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--blue-100);
}

.policy-section {
  background: var(--white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
  margin-bottom: 2rem;
}

h2 {
  color: var(--black);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--grey-100);
  letter-spacing: -0.02em;
}

h2:first-child {
  margin-top: 0;
}

p {
  color: var(--grey-700);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1rem;
}

ul {
  list-style-position: outside;
  margin-bottom: 1.5rem;
  margin-left: 1.5rem;
  color: var(--grey-700);
}

ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

a {
  color: var(--blue-500);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: var(--blue-600);
  text-decoration: underline;
}

strong {
  font-weight: 600;
  color: var(--black);
}

/* Contact Options */
.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.contact-option:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
  background: var(--white);
  text-decoration: none;
}

.contact-option i {
  font-size: 2rem;
  color: var(--blue-500);
  transition: all 0.3s ease;
}

.contact-option:hover i {
  transform: scale(1.1);
}

.contact-option span {
  color: var(--black);
  font-weight: 600;
  font-size: 1rem;
}

/* Footer */
.footer {
  background: var(--white);
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid var(--grey-200);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  color: var(--black);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section p {
  color: var(--grey-500);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--grey-500);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.75rem;
  width: fit-content;
  font-weight: 400;
}

.footer-section a:hover {
  color: var(--blue-500);
  transform: translateX(4px);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-200);
  color: var(--grey-500);
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
  }

  .nav {
    display: none; /* Implement mobile menu if needed */
  }

  .main-content {
    padding: 1.5rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .policy-header {
    padding: 2rem 1.5rem;
  }

  .policy-header h1 {
    font-size: 2rem;
  }

  .policy-section {
    padding: 1.5rem;
  }
}
