.memo-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  align-items: center; /* center each box */
  align-self: center;
}

.memo-box {
  background-color: white;
  border: 1px solid #ccc;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-radius: 15px;
  font-size: 0.9rem;
  max-width: 1000px;
  width: 100%;
 
}

.memo-box a {
  color: #007acc;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  display: block;
}

.memo-box a:hover {
  text-decoration: underline;
}

.memo-box p {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #666;
}

@media (max-width: 600px) {
  .memo-container {
    gap: 0.75rem;
    padding: 0.5rem;
  }

  .memo-box {
    padding: 0.75rem;
  }

  .memo-box a {
    font-size: 0.95rem;
  }

  .memo-box p {
    font-size: 0.75rem;
  }
}

.memo-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* MAO NI ANG SHADOW sa BOX */
    padding: 30px;
}

.memo-title {
    text-align: center;
    color: #03508c;
    font-size: 2rem;
}

.memo-wrapper h2 {
    text-align: center;
    color: #03508c;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Layout: filter on top-left, table fills the rest */
.memo-flex {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

/* Filter styling: bigger and aligned left */
.memo-filters {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    margin-top: -48px;
    padding-left: 0;
}

.memo-filters label {
    font-size: 1.15rem;
    font-weight: bold;
    margin-right: 8px;
    color: #03508c;
}

.memo-filters select {
    padding: 8px 18px;
    border-radius: 8px;
    border: 2px solid #03508c;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 2px;
    min-width: 140px;
    box-shadow: 0 2px 6px rgba(33,79,136,0.06);
    background: none;
    text-align: center;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.memo-table-wrapper {
    overflow-x: auto;
}

.memo-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: #fff;
}

.memo-table th, .memo-table td {
    border: 1px solid #ddd;
    padding: 20px 12px;
    text-align: left;
    vertical-align: middle;
}

.memo-table th {
    background-color: #f2f2f2;
    font-weight: 600;
    text-align: center;
}

.memo-table td a {
    color: #03508c;
    text-decoration: none;
}
.memo-table td a:hover {
  font-weight: bold;
}

/* Make the Date Posted column wider */
.memo-table th:nth-child(2),
.memo-table td:nth-child(2) {
    width: 150px; /* Adjust this value as needed */
    min-width: 150px;
    max-width: 300px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .memo-wrapper {
        padding: 10px;
    }
    .memo-filters {
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
        justify-content: center; /* Add this line */
        align-items: center; /* Change from stretch to center */
        margin-top: 10px;
    }
    .memo-table th, .memo-table td {
        padding: 8px;
        font-size: 14px;
    }
}


/* Pagination styles */
/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0 0 0;
    flex-wrap: wrap; /* Add this line */
}

.pagination a {
    padding: 8px 18px;
    border-radius: 8px;
    background: none;
    color: #03508c;
    font-weight: 600;
    border: 2px solid #03508c;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
    margin: 0 2px;
    box-shadow: 0 2px 6px rgba(33,79,136,0.06);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.pagination a.active,
.pagination a:hover {
    background: #03508c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(33,79,136,0.10);
    outline: none;
    z-index: 1;
}

.pagination a:first-child,
.pagination a:last-child {
    font-weight: bold;
    font-size: 1.08rem;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .pagination {
        gap: 4px; /* Reduce gap on mobile */
    }
    
    .pagination a {
        padding: 6px 8px; /* Smaller padding */
        font-size: 0.9rem; /* Smaller font */
        margin: 0 1px; /* Smaller margin */
        min-width: 32px; /* Ensure minimum touch target */
    }
}

.memo-filters select,
.pagination a {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 18px;
    padding-right: 18px;
}

.filter-btn {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 18px;
    border-radius: 8px;
    background: none;
    color: #03508c;
    font-weight: 600;
    border: 2px solid #03508c;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
    margin: 0 2px;
    box-shadow: 0 2px 6px rgba(33,79,136,0.06);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    min-width: 140px;
    text-decoration: none;
    position: relative;
    /* Custom arrow */
    background-image: url("data:image/svg+xml;utf8,<svg fill='03508c' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    padding-right: 36px;
}

.filter-btn:focus,
.filter-btn:hover {
    background: #03508c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(33,79,136,0.10);
    outline: none;
}



/******************************/
/*👁️👁️👁️ PDF VIEWER STUFF 👁️👁️👁️*/
/******************************/
/* Moved to its own CSS file */



/* File "resources_rm.css" created on June 10, 2025; Gian Centeno */