/* =========================================
   STUDENT LIFE PAGE STYLES
   Using colors from variables.css
   ========================================= */

/* Hero Section */
#mainContent {
  margin-top: 189px; /* Adjust if needed: notification (45px) + navbar (80px) + translator (30px) */
}
.student-life-hero {
  position: relative;
  overflow: hidden;
}

.student-life-hero-img {
  min-height: 140px;
  object-fit: cover;
}

.student_life_cover {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.student_life_cover_heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0px;
  text-shadow: 0px 3px 6px #00000099;
}

.student_life_cover_text {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0px;
  text-shadow: 0px 3px 6px #00000099;
}

/* Headline Section */
.student_life_headline {
  padding: 40px 0;
}

.student_life_headline p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* House Structure Image */
.student_life_house_structure {
  padding-left: 30px !important;
}

.student_life_house_structure img {
  width: 100%;
  height: auto;
}

/* Text Badge Color */
.text-gray-badge {
  color: #6a6a6a;
}

/* House Logos */
.house-logo-btn {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.house-logo-btn:focus {
  outline: none;
}

.house-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.house-logo-btn:hover .house-logo {
  transform: scale(1.1);
}

.house-link {
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
}

.house-link:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Societies Table Styling */
.societies-table {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.societies-table thead th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #dee2e6;
  padding: 12px 8px;
  vertical-align: middle;
}

.societies-table tbody td {
  padding: 12px 8px;
  vertical-align: middle;
  word-break: break-word;
}

.societies-table tbody tr:hover {
  background-color: #f8f9fa;
}

.societies-table a {
  color: var(--primary);
  text-decoration: none;
}

.societies-table a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Orange Buttons in Table (using primary color) */
.btn-outline-purple {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white !important;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.btn-outline-purple:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(247, 34, 0, 0.3);
}

.societies-table .btn-outline-purple,
.societies-table .btn-outline-purple:hover,
.societies-table .btn-outline-purple:active,
.societies-table .btn-outline-purple:focus {
  color: white !important;
}

/* Email Cell */
.email-cell {
  max-width: 250px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.email-cell a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.email-cell i {
  font-size: 0.9rem;
}

/* Goals & Initiatives Section */
.border-left {
  border-left: 2px solid #e2e2e2;
}

/* Icons */
section img[src*="Icon"] {
  max-width: 100%;
  height: auto;
}

/* Checkmarks */
.fa-check {
  color: var(--primary);
  margin-right: 0.5rem;
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */

/* Tablet - screens smaller than 768px */
@media (max-width: 768px) {
  .student_life_cover {
    top: 15px;
    padding: 10px;
    transform: none;
  }
  
  .student_life_cover_heading {
    font-size: 0.7rem;
  }
  
  .student_life_cover_text {
    font-size: 1rem;
    line-height: 1.2;
  }

  .student_life_house_structure {
    padding-left: 0px !important;
    margin-top: 1rem;
  }

  .student_life_headline {
    padding: 18px 0;
  }

  .societies-table {
    font-size: 0.85rem;
  }

  .societies-table thead th,
  .societies-table tbody td {
    padding: 8px 4px;
  }

  .societies-table .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .border-left {
    border-left: none;
    border-top: 2px solid #e2e2e2;
    padding-top: 1rem;
    margin-top: 1rem;
  }
}

/* Mobile - screens smaller than 576px */
@media (max-width: 576px) {
  .student_life_cover_heading {
    font-size: 0.6rem;
  }
  
  .student_life_cover_text {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .email-cell {
    font-size: 0.75rem;
  }

  .house-link {
    font-size: 0.8rem;
  }

  .societies-table {
    font-size: 0.8rem;
  }

  /* Stack table on very small screens */
  .societies-table thead {
    display: none;
  }

  .societies-table,
  .societies-table tbody,
  .societies-table tr,
  .societies-table td {
    display: block;
    width: 100%;
  }

  .societies-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
  }

  .societies-table td {
    text-align: left;
    padding: 0.5rem 0;
    border: none;
  }

  .societies-table td:before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
  }

  .email-cell {
    max-width: 100%;
  }
}

/* Large screens - maintain proper spacing */
@media (min-width: 992px) {
  .student_life_cover {
    padding: 40px 145px 0;
  }
}