/*Page5.css*/

/* Base Styles */
:root {
  --primary-red: #B7202E;
  --dark-red: #8a0000;
  --light-red: #d32f2f;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #757575;
  --black: #212121;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Page Container */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f4f4f4;
}

html, body {
  margin: 0;
  padding: 0;
  height: auto; /* Let height grow naturally */
  overflow-x: hidden; /* Hide only horizontal scroll */
  overflow-y: auto;   /* Allow vertical scroll */
}

/* Header Bar */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.leftlogo, .rightlogo {
  height: 50px;
  width: auto;
}

.college-name {
  color: var(--primary-red);
  font-size: 1.5rem;
  margin: 0;
}

/* Navigation Bar */
.navbar {
  background-color: var(--primary-red);
  padding: 0 20px;
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.navbar li {
  padding: 15px 20px;
}

.navbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.navbar a:hover, .navbar a.active {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Main Content */
.meetings-page-container {
  flex: 1;
  padding: 30px;
  max-width: 1400px;
  margin: 40px auto 0 auto; /* 40px top margin to separate from navbar */
  width: 100%;
}

.page-title {
  text-align: center;
  color: var(--primary-red);
  margin-bottom: 30px;
  font-size: 2rem;
}

.no-meetings {
  text-align: center;
  color: var(--dark-gray);
  font-size: 1.2rem;
  margin-top: 40px;
}

/* Meetings Grid Container */
.meetings-grid-container {
  width: 100%;
  overflow: hidden;
}

.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  padding: 10px;
}

.soft-delete-button {
  background-color: #d9534f;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.soft-delete-button:hover {
  background-color: #c9302c;
}


/* Meeting Cards */
.meeting-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-red);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.meeting-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card-summary {
  padding: 20px;
  cursor: pointer;
}

.meeting-title {
  color: var(--black);
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.meeting-meta {
  display: flex;
  justify-content: space-between;
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.meeting-department {
  color: var(--primary-red);
  font-weight: 500;
  font-size: 0.9rem;
}

.card-details {
  padding: 20px;
  background-color: var(--light-gray);
  border-top: 1px solid var(--medium-gray);
  flex: 1;
}

.detail-row {
  display: flex;
  margin-bottom: 10px;
  line-height: 1.4;
}

.detail-label {
  font-weight: 600;
  color: var(--primary-red);
  min-width: 100px;
}

.detail-section {
  margin: 20px 0;
}

.detail-section h3 {
  color: var(--primary-red);
  font-size: 1.1rem;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--medium-gray);
  padding-bottom: 5px;
}

.agenda-list, .attachments-list {
  padding-left: 20px;
  margin: 10px 0;
}

.agenda-list li, .attachments-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.attachments-list a {
  color: var(--primary-red);
  text-decoration: none;
  transition: var(--transition);
}

.attachments-list a:hover {
  text-decoration: underline;
}

.recipients-list {
  word-break: break-all;
}

/* Calendar Button */
.calendar-button {
  display: block;
  background-color: var(--primary-red);
  color: var(--white) !important;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  margin-top: 20px;
  text-decoration: none;
  transition: var(--transition);
}

.calendar-button:hover {
  background-color: var(--dark-red);
}

/* Footer */
footer {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 20px;
  text-align: center;
}

.terms {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.terms a {
  color: var(--white);
  text-decoration: none;
}

.footer-image {
  height: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .meetings-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-bar {
    flex-direction: column;
    padding: 10px;
  }

  .college-name {
    margin: 10px 0;
    font-size: 1.2rem;
  }

  .navbar li {
    padding: 10px 15px;
  }

  .meetings-page-container {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .meetings-grid {
    grid-template-columns: 1fr;
  }

  .detail-row {
    flex-direction: column;
  }

  .detail-label {
    margin-bottom: 5px;
  }

  .meeting-meta {
    flex-direction: column;
    gap: 5px;
  }
}