/* StudentArea.css - Fixed Version */
/* Custom styles for the Student Area page */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-radius: 0.5rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f5f7fa;
}

main {
  margin-top: 20px;
}

.section-title {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Student Hero Section (Same as About Page) */
.student-hero {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 100px 0 60px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.student-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="white"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="white"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="white"/></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.1;
}

.student-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.student-hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

/* Quick Links Section */
.quick-links-section {
  padding: 60px 0;
}

.link-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.link-card h5 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin-bottom: 0.75rem;
}

.link-list a {
  color: var(--dark-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.link-list a:hover {
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
  transform: translateX(5px);
}

.link-list i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

/* Student Portal Section */
.student-portal-section {
  padding: 60px 0;
}

.portal-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.portal-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.portal-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.portal-card p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* Clubs & Activities Section */
.clubs-activities-section {
  padding: 60px 0;
}

.resource-card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  padding: 2rem;
  height: 100%;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.resource-card .card-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Student Services Section */
.student-services-section {
  padding: 60px 0;
}

.service-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-item h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-item p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* Important Contacts Section */
.important-contacts-section {
  padding: 60px 0;
}

/* Back to Top Button Fix */
.back-to-top {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  border: none;
  outline: none;
}

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

.back-to-top:hover {
  background-color: var(--primary-color);
  opacity: 0.9;
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .student-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .student-hero {
    padding: 80px 0 40px;
    text-align: center;
  }
  
  .student-hero h1 {
    font-size: 2.2rem;
  }
  
  .student-hero p {
    font-size: 1.1rem;
    margin: 0 auto 30px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .link-card,
  .portal-card,
  .resource-card,
  .service-item {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .student-hero {
    padding: 60px 0 30px;
  }
  
  .student-hero h1 {
    font-size: 2rem;
  }
  
  .student-hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .link-card,
  .portal-card,
  .resource-card,
  .service-item {
    padding: 1.5rem;
  }
  
  .portal-icon,
  .card-icon,
  .service-icon {
    font-size: 2.5rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .student-hero h1 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .link-card,
  .portal-card,
  .resource-card,
  .service-item {
    padding: 1.25rem;
  }
  
  .portal-icon,
  .card-icon,
  .service-icon {
    font-size: 2rem;
  }
  
  .link-list a {
    font-size: 0.9rem;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
  }
}