/* Result & Academics Page Styles */

.ra-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.ra-title {
  text-align: center;
  color: #003366;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ra-title span {
  display: block;
  font-size: 1.2rem;
  color: #0066cc;
  font-weight: 400;
  margin-top: 10px;
  text-transform: none;
}

/* Section Styles */
.ra-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.ra-section:nth-child(2) { animation-delay: 0.1s; }
.ra-section:nth-child(3) { animation-delay: 0.2s; }
.ra-section:nth-child(4) { animation-delay: 0.3s; }
.ra-section:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
  color: #fff;
  padding: 20px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.section-header:hover {
  background: linear-gradient(135deg, #002244 0%, #0055aa 100%);
}

.section-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.section-header.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 30px;
}

.section-content.active {
  max-height: 5000px;
  padding: 30px;
}

/* Table Styles */
.ra-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ra-table thead {
  background: #003366;
  color: #fff;
}

.ra-table th,
.ra-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.ra-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.ra-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.ra-table tbody tr:hover {
  background: #e3f2fd;
  transition: background 0.3s;
}

.small-table {
  max-width: 400px;
}

.sub-title {
  color: #003366;
  font-size: 1.2rem;
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Calendar Styles */
.calendar-month {
  margin-bottom: 30px;
  border-left: 4px solid #0066cc;
  padding-left: 20px;
}

.calendar-month h4 {
  color: #003366;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-item {
  display: flex;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 5px;
  transition: all 0.3s;
}

.event-item:hover {
  background: #e3f2fd;
  transform: translateX(5px);
}

.event-item.holiday {
  background: #fff3e0;
}

.event-item.holiday:hover {
  background: #ffe0b2;
}

.event-item .date {
  font-weight: 600;
  color: #0066cc;
  min-width: 180px;
  font-size: 0.95rem;
}

.event-item .event {
  color: #333;
  flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ra-title {
    font-size: 1.8rem;
  }

  .ra-title span {
    font-size: 1rem;
  }

  .section-header h3 {
    font-size: 1.1rem;
  }

  .section-content.active {
    padding: 20px 15px;
  }

  .ra-table {
    font-size: 0.9rem;
  }

  .ra-table th,
  .ra-table td {
    padding: 10px 8px;
  }

  .event-item {
    flex-direction: column;
    gap: 5px;
  }

  .event-item .date {
    min-width: auto;
    font-size: 0.85rem;
  }

  .calendar-month {
    padding-left: 15px;
  }

  .calendar-month h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .ra-container {
    padding: 20px 10px;
  }

  .ra-title {
    font-size: 1.5rem;
  }

  .section-header {
    padding: 15px 20px;
  }

  .section-header h3 {
    font-size: 1rem;
  }

  .ra-table {
    font-size: 0.8rem;
  }

  .ra-table th,
  .ra-table td {
    padding: 8px 5px;
  }

  /* Make tables scrollable on very small screens */
  .ra-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Document Button Styles */
.doc-btn-container {
  text-align: center;
  margin-bottom: 25px;
}

.doc-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0066cc 0%, #003366 100%);
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.doc-btn:hover {
  background: linear-gradient(135deg, #0055aa 0%, #002244 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.doc-btn i {
  margin-right: 8px;
}

/* Print Styles */
@media print {
  .section-content {
    max-height: none !important;
    padding: 20px !important;
  }

  .toggle-icon {
    display: none;
  }

  .section-header {
    cursor: default;
  }
}
